package com.example.chapter04;

/**
 * @author myh
 * @date 2024/4/29
 */
public class Demo01 {
    public static void main(String[] args) {
        //操作符的优先级决定了表达式的计算顺序
        int x = 1, y = 2, z = 3;
        int a = x + y - 2 / 2 + z;            // [1]
        int b = x + (y - 2) / (2 + z);        // [2]

        System.out.println("a = " + a);
        System.out.println("b = " + b);
    }
}
